<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/business/include/doctype.jsp" %>

<%
// scriptType 	=> String 형식
// message   	=> String 형식 ex) 비밀번호가 틀립니다.
// message_url	=> alert 클릭 후 이동할 url 주소
%>

<script type="text/javascript">
	<c:choose>
		<c:when test="${scriptType eq '001'}">
			self.close();
		</c:when>
		<c:when test="${scriptType eq '002'}">
			alert('<c:out value="%{message}" />');
			window.history.go(-1);
		</c:when>
		<c:otherwise>
			alert('<c:out value="${message}" />');
			document.location.href = '<c:out value="${message_url}" />';
		</c:otherwise>
	</c:choose>
</script>
</head>